.byq {
    width: 100vw;
    min-height: 100vh;
    background-color: #f2f2f2;
}

.b_top {
    width: 100%;
    height: 40px;
    background-color: #fff;
    position: relative;
    display: flex;
}

.b_t_left {
    display: flex;

    .tb {
        width: 30px;
        height: 30px;
        margin-left: 15px;
        margin-top: 5px;
    }
}

.b_t_right {
    display: flex;
    width: 30px;
    height: 40px;
    margin-left: 280px;

    img {
        width: 30px;
        height: 30px;
        margin-top: 5px;
    }
}

.byq-tab {
    width: 100%;
    background-color: #fff;
}

.byq-list {
    background-color: #fff;
    margin-top: 1px;
    margin-bottom: 60px;
    width: 100%;
}

.card {
    width: calc(100% - 24px);
    margin: 12px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #ededed;
    overflow: hidden;
}

.img-wrap {
    padding: 0;
}

.doc-img {
    margin: 0 18px;
    height: var(--main-img-h, 230px);
    object-fit: contain;
    object-position: center; 
    display: block;
    border-radius: 8px;
    background: #fff;
    width: 300px;
}

.meta {
    padding: 12px 16px 0;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.job {
    color: #888;
    font-size: 12px;
    padding-top: 2px;
}

.sub {
    color: #666;
    font-size: 14px;
    margin-top: 6px;
}

.stats {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    padding-bottom: 12px;
}

.stats b {
    color: #222;
    font-weight: 600;
}

.stats .divider {
    width: 1px;
    height: 10px;
    background: #ddd;
    display: inline-block;
}

.more-dot {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #2ec79b;
    position: relative;
}

.more-dot::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #2ec79b;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: -9px 0 0 #2ec79b, 9px 0 0 #2ec79b;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #efefef;
}

.price {
    color: #222;
    font-weight: 700;
    font-size: 16px;
}

.cta {
    background: #3c7bff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(60, 123, 255, 0.35);
}

/* thumbs */
.thumbs-row {
    display: flex;
    align-items: center;
    margin-top: 14px;
    padding: 0 10px;
    position: relative;
}

.thumbs-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    flex: 1;
    padding: 2px 44px 2px 4px;
}

.thumb {
    width: 112px;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: var(--thumb-img-h, 120px);
    object-fit: cover;
    display: block;
    background: #eee;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.thumb-name {
    background: #b6b6b6;
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 6px 0;
}

.thumb.on .thumb-name {
    background: #3c7bff;
}

.thumb-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
}

.thumb-arrow::before,
.thumb-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-right: 3px solid #3c7bff;
    border-top: 3px solid #3c7bff;
    transform: rotate(45deg);
    border-radius: 2px;
}

.thumb-arrow::before { left: 0; }
.thumb-arrow::after { left: 9px; }

.thumb-indicator {
    text-align: center;
    color: #222;
    margin: 6px 0 0;
}

.thumb-indicator b {
    font-size: 16px;
    margin-right: 2px;
}


.ks-sortbar {
    display: flex;
    align-items: center;
    height: 44px;
    background: #fff;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
    padding: 0 12px;
}

.ks-sort-item {
    flex: 1;
    text-align: center;
    color: #666;
    position: relative;
}

.ks-sort-item.ks-active {
    color: #e74a3b;
}

.ks-sort-item.ks-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: #e74a3b;
    border-radius: 2px;
}

.ks-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.ks-arrows {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.ks-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.ks-arrow.up {
    border-bottom: 6px solid #bbb;
    margin-bottom: 2px;
}

.ks-arrow.down {
    border-top: 6px solid #bbb;
    margin-top: 2px;
}

.ks-up-on {
    border-bottom-color: #e74a3b !important;
}

.ks-down-on {
    border-top-color: #e74a3b !important;
}

.fuwu {
    margin-left: 15px;
}

/* 加载状态样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3c7bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 14px;
}

/* 错误状态样式 */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.error-text {
    color: #e74a3b;
    font-size: 14px;
    margin-bottom: 16px;
}

.retry-btn {
    background: #3c7bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.retry-btn:hover {
    background: #2c5ce6;
}